﻿<%@ Page Language="C#" MasterPageFile="~/defaultMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Hệ thống đấu giá" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="5" style="width: 100%">
        <tr>
            <td style="width: 200px;" valign="top">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 200px">
                    <tr>
                        <td><table border="0" cellpadding="0" cellspacing="0" style="width: 200px">
                            <tr>
                                <td style="width: 35px; height: 30px">
                                    <img src="imgs/header_left.gif" alt="" /></td>
                                <td class="header">
                                    <span class="HeaderText">Quảng cáo</span>
                                </td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="body" valign="top" align="center" style="height: 20px"><asp:DataList ID="dlAds" runat="server" Width="100%">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink2" runat="server" ImageUrl='<%# "imgs/ads/" + Eval("AdImg") %>' NavigateUrl='<%# Eval("AdUrl") %>' Target="_blank" Text='<%# Eval("AdText") %>'></asp:HyperLink>
                                </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:DataList></td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img src="imgs/header_left.gif" alt="" /></td>
                                    <td class="header">
                                        <span class="HeaderText">Sàn đấu giá kết thúc trong ngày</span> <asp:Label ID="lblCurDate"
                                            runat="server" Text="" CssClass="HeaderText"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="body" valign="top">
                        <asp:Label ID="lblDoneRs" runat="server" Text='<div align="center"><br/><br/>Chưa có sàn kết thúc trong ngày.<br/><br/><br/></div>' Visible="false"></asp:Label>
                        <asp:DataList ID="dlDone" runat="server" CellSpacing="5" RepeatColumns="2" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <table border="0" cellpadding="3" cellspacing="0" style="width: 270px; border-right: #ccc 1px dotted;
                                    border-top: #ccc 1px dotted; border-left: #ccc 1px dotted; border-bottom: #ccc 1px dotted;" align="center">
                                    <tr>
                                        <td align="center">
                                            <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# "imgs/floors/" + Eval("ProID") + "/main_thumbs.jpg" %>' NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>' Text='<%# Eval("ProName") %>'></asp:HyperLink></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Tên: <strong><asp:Label ID="Label1" runat="server" Text='<%# Eval("ProName") %>'></asp:Label></strong></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Giá bán: <asp:Label ID="Label2" CssClass="Verdana10RedBold" runat="server" Text='<%# string.Format("{0:c0}", Eval("CurBid")) %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Người bán:
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Seller") %>'></asp:Label></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList></td>
                     </tr>
                    <tr>
                        <td class="Verdana3Black" valign="top">
                            &nbsp;</td>
                    </tr>
                </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td style="width: 35px; height: 30px">
                                    <img src="imgs/header_left.gif" alt="" /></td>
                                <td class="header">
                                    <span class="HeaderText">Sàn đấu giá có nhiều lượt ra giá nhất trong ngày</span> 
                                    <asp:Label ID="lblCurDate2" runat="server" CssClass="HeaderText" Text=""></asp:Label></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="body" valign="top" align="left">
                        <asp:Label ID="lblMostBidRs" runat="server" Text='<div align="center"><br/><br/>Chưa có sàn nào được ra giá trong ngày<br/><br/><br/></div>' Visible="false"></asp:Label>
                        <asp:DataList ID="dlMostBidRs" runat="server" CellSpacing="5" RepeatColumns="2" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <table border="0" cellpadding="3" cellspacing="0" style="width: 270px; border-right: #ccc 1px dotted;
                                    border-top: #ccc 1px dotted; border-left: #ccc 1px dotted; border-bottom: #ccc 1px dotted;" align="center">
                                    <tr>
                                        <td align="center">
                                            <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# "imgs/floors/" + Eval("ProID") + "/main_thumbs.jpg" %>' NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>' Text='<%# Eval("ProName") %>'></asp:HyperLink></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Tên: <strong><asp:Label ID="Label1" runat="server" Text='<%# Eval("ProName") %>'></asp:Label></strong></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Giá hiện tại:
                                            <asp:Label ID="Label2" CssClass="Verdana10RedBold" runat="server" Text='<%# string.Format("{0:c0}", Eval("CurBid")) %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Người bán:
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Seller") %>'></asp:Label></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

